package com.huang825172.sbog.BaseFlux.Store;

import android.content.Context;

import com.huang825172.sbog.BaseFlux.Action.BaseAction;

import java.util.ArrayList;
import java.util.List;

public class BaseStore {
    private IDataChangedListener dataChangedListener;
    public Context context;

    public BaseStore(Context context) {
        this.context = context;
    }

    public List<String> getActionLabels() {
        return new ArrayList<>();
    }

    public void changeData(BaseAction action) {

    }

    public void notifyDataChanged(String label) {
        dataChangedListener.onDataChanged(label);
    }

    public void setDataChangedListener(IDataChangedListener listener) {
        this.dataChangedListener = listener;
    }
}
